<?php

if(!isset($tpl))die('Wrong URL!');

$page_id="index";
//$stat = $db->query("select * from tbl_apk")->fetchAll(PDO::FETCH_ASSOC);

$stat = mysql_query("select * from tbl_apk");

$list = array();
while  ($row = mysql_fetch_array($stat, MYSQL_ASSOC)) {
	$list[] = $row;
}
$tpl->assign('page_id', $page_id);
$tpl->assign('list', $list);
$tpl->display('listing.tpl');
